package com.suray.system.run.core;

import java.util.Date;
import java.util.Objects;

public class OfflineDescription extends BaseInfo {
    /**
     * 离线开始时间
     */
    private Date offLineStartDate;

    /**
     * 离线结束时间
     */
    private Date offLineEndDate;

    public Date getOffLineStartDate() {
        return offLineStartDate;
    }

    public Date getOffLineEndDate() {
        return offLineEndDate;
    }

    public void setOffLineStartDate(Date offLineStartDate) {
        this.offLineStartDate = offLineStartDate;
    }

    public void setOffLineEndDate(Date offLineEndDate) {
        this.offLineEndDate = offLineEndDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        OfflineDescription that = (OfflineDescription) o;
        return Objects.equals(offLineStartDate, that.offLineStartDate) &&
                Objects.equals(offLineEndDate, that.offLineEndDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), offLineStartDate, offLineEndDate);
    }
}
